package com.yystar.user.operator.web;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yystar.support.base.controller.BaseController;

@Controller
public class IndexController extends BaseController {
	@RequestMapping(value = "/index")
	public String index(
			@RequestParam(value = "localeString", required = false) String localeString,
			Model model
	) {
		if (StringUtils.isEmpty(localeString)) {
			return "index";
		} else {
			return "redirect:/index";
		}
		
	}
	
	
}
